require! <[
  ./CONST.ls
  path
]>

module.exports = {
  git: (url)~>
    dir = path.join(
      CONST.CACHE_ROOT
      \git
      url.slice(url.indexOf("://")+3)
    )
    if dir.endsWith \.git
      dir = dir.slice(0,-4)
    dir
}
